<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<script type="text/javascript">
	function movePage(pageNo) {
		//window.location = '?pageNo=' + pageNo + param();
		$.get("myFocusCompany.do?pageNo="+pageNo+param() + "&"+Math.random(), function(data) {
		$("#main").html(data);
	});
	}
	function param() {
		var param = "";
		var cName = $("#cName").val();
		if (cName != null)
			param += "&cName=" + cName;
		return param;
	}
	$(document).ready(function() {
		$("#search").button().click(function() {
			movePage(1);
		});
	});
</script>
<table class="list" cellpadding="0" width="100%" cellspacing="1">
	<thead>
		<tr>
			<td colspan="4" class="search"><label> 公司名称： </label> <input name="cName" id="cName" value="${param.cName }">
			<button id="search">查询</button>
			</td>
		</tr>
		<tr>
			<td>公司名称</td>
			<td>成立日期</td>
			<td>注册资金</td>
			<td>注册员工数</td>
		</tr>
	</thead>
	<tbody>
		<c:forEach var="e" items="${o.dataList}" varStatus="s">
			<tr>
				<td><a href="showCompany.do?id=${e.id}" target="_blank">${e.cName}</a></td>
				<td align="center">${e.buildDate }</td>
				<td align="center">${e.money }</td>
				<td align="center">${e.employee }</td>
			</tr>
		</c:forEach>
	</tbody>
	<tfoot>
		<tr>
			<td colspan="4">${o.pageNav }</td>
		</tr>
	</tfoot>
</table>